package com.xuzz.study.spring.scanner;

import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: xuzz
 * @create: 2020-02-28 10:46
 */
@Component
public class MyScanService {
    public void sayFromDepComponent()
    {
        System.out.println("sayFromDepComponent");
    }

    @Override
    public String toString()
    {
        return "我是@Component组件，被@MyScanAnnotation注入";
    }
}
